import 'package:enterprise_v6_app/generated/json/base/json_convert_content.dart';
import 'package:enterprise_v6_app/app/data/entities/application/standardiztion/standard_home_urgent_count_entity.dart';

StandardHomeUrgentCountEntity $StandardHomeUrgentCountEntityFromJson(Map<String, dynamic> json) {
  final StandardHomeUrgentCountEntity standardHomeUrgentCountEntity = StandardHomeUrgentCountEntity();
  final int? emergencyRescueOrgNum = jsonConvert.convert<int>(json['emergencyRescueOrgNum']);
  if (emergencyRescueOrgNum != null) {
    standardHomeUrgentCountEntity.emergencyRescueOrgNum = emergencyRescueOrgNum;
  }
  final int? expertNum = jsonConvert.convert<int>(json['expertNum']);
  if (expertNum != null) {
    standardHomeUrgentCountEntity.expertNum = expertNum;
  }
  final int? planCoverDeptNum = jsonConvert.convert<int>(json['planCoverDeptNum']);
  if (planCoverDeptNum != null) {
    standardHomeUrgentCountEntity.planCoverDeptNum = planCoverDeptNum;
  }
  final int? planNum = jsonConvert.convert<int>(json['planNum']);
  if (planNum != null) {
    standardHomeUrgentCountEntity.planNum = planNum;
  }
  final int? sourcePointNum = jsonConvert.convert<int>(json['sourcePointNum']);
  if (sourcePointNum != null) {
    standardHomeUrgentCountEntity.sourcePointNum = sourcePointNum;
  }
  final int? teamNum = jsonConvert.convert<int>(json['teamNum']);
  if (teamNum != null) {
    standardHomeUrgentCountEntity.teamNum = teamNum;
  }
  return standardHomeUrgentCountEntity;
}

Map<String, dynamic> $StandardHomeUrgentCountEntityToJson(StandardHomeUrgentCountEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['emergencyRescueOrgNum'] = entity.emergencyRescueOrgNum;
  data['expertNum'] = entity.expertNum;
  data['planCoverDeptNum'] = entity.planCoverDeptNum;
  data['planNum'] = entity.planNum;
  data['sourcePointNum'] = entity.sourcePointNum;
  data['teamNum'] = entity.teamNum;
  return data;
}

extension StandardHomeUrgentCountEntityExtension on StandardHomeUrgentCountEntity {
  StandardHomeUrgentCountEntity copyWith({
    int? emergencyRescueOrgNum,
    int? expertNum,
    int? planCoverDeptNum,
    int? planNum,
    int? sourcePointNum,
    int? teamNum,
  }) {
    return StandardHomeUrgentCountEntity()
      ..emergencyRescueOrgNum = emergencyRescueOrgNum ?? this.emergencyRescueOrgNum
      ..expertNum = expertNum ?? this.expertNum
      ..planCoverDeptNum = planCoverDeptNum ?? this.planCoverDeptNum
      ..planNum = planNum ?? this.planNum
      ..sourcePointNum = sourcePointNum ?? this.sourcePointNum
      ..teamNum = teamNum ?? this.teamNum;
  }
}
